/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2022-03-16 17:09:28
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2024-10-13 19:27:19
 */

import request from '@projectName/utils/request'

export function placeIndex(data) {
  return request({
    url: '/diandi_place/place/place/index',
    method: 'get',
    params: data
  })
}

export function placeView(id) {
  return request({
    url: `/diandi_place/place/place/view/${id}`,
    method: 'get'
  })
}

export function placeCreate(data) {
  return request({
    url: '/diandi_place/place/place/create',
    method: 'post',
    data: data
  })
}

export function placeUpdate(data) {
  return request({
    url: `/diandi_place/place/place/update/${data.id}`,
    method: 'put',
    data: data
  })
}

export function placeDelete(id) {
  return request({
    url: `/diandi_place/place/place/delete/${id}`,
    method: 'delete'
  })
}

export function placeInit(data) {
  return request({
    url: '/diandi_place/place/place/init',
    method: 'get',
    data: data
  })
}

export function placeList(data) {
  return request({
    url: '/diandi_place/place/place/list',
    method: 'post',
    data: data
  })
}

export function placeTypeList(data) {
  return request({
    url: '/diandi_place/place/place/typelist',
    method: 'post',
    data: data
  })
}

